﻿using System;

namespace IMaverick.Physics.Extensions
{
    public static partial class DoubleExtensions
    {
        public static PhysicalValue<Frequency> Hz(this Double operand)
        {
            return new PhysicalValue<Frequency>(operand, Frequency.Hertz);
        }
        public static PhysicalValue<Frequency> cHz(this Double operand)
        {
            return new PhysicalValue<Frequency>(operand, Frequency.Centihertz);
        }
        public static PhysicalValue<Frequency> dHz(this Double operand)
        {
            return new PhysicalValue<Frequency>(operand, Frequency.Decihertz);
        }
        public static PhysicalValue<Frequency> GHz(this Double operand)
        {
            return new PhysicalValue<Frequency>(operand, Frequency.Gigahertz);
        }
        public static PhysicalValue<Frequency> kHz(this Double operand)
        {
            return new PhysicalValue<Frequency>(operand, Frequency.Kilohertz);
        }
        public static PhysicalValue<Frequency> MHz(this Double operand)
        {
            return new PhysicalValue<Frequency>(operand, Frequency.Megahertz);
        }
        public static PhysicalValue<Frequency> mHz(this Double operand)
        {
            return new PhysicalValue<Frequency>(operand, Frequency.Millihertz);
        }
        public static PhysicalValue<Frequency> µHz(this Double operand)
        {
            return new PhysicalValue<Frequency>(operand, Frequency.Microhertz);
        }
    }
}
